import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listEquipment(query) {
  return request({
    url: '/wms/equipment/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getEquipment(id) {
  return request({
    url: '/wms/equipment/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addEquipment(data) {
  return request({
    url: '/wms/equipment',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateEquipment(data) {
  return request({
    url: '/wms/equipment',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delEquipment(id) {
  return request({
    url: '/wms/equipment/' + id,
    method: 'delete'
  })
}

export function getProductLine() {
  return request({
    url: '/wms/equipment/get_product_line',
    method: 'post'
  })
}

export function getStation(line) {
  return request({
    url: '/wms/equipment/get_station?line=' + line,
    method: 'post'
  })
}

export function getStatus() {
  return request({
    url: '/wms/equipment/get_status',
    method: 'post'
  })
}

export function getOutType() {
  return request({
    url: '/wms/equipment/get_out_type',
    method: 'post'
  })
}
